<?php
// +----------------------------------------------------------------------
// | Diygw PHP
// +----------------------------------------------------------------------
// | Copyright (c) 2022~2024 https://www.diygw.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: diygw <diygwcom@diygw.com>
// +----------------------------------------------------------------------
declare (strict_types = 1);

namespace app\shop\model;

use diygw\model\DiygwModel;
use think\facade\Db;

/**
 * @package app\shop\model
 */
class OrderModel extends DiygwModel
{
    // 表名
    public $name = 'shop_order';

    // 相似查询字段
    protected $likeField=[];

    public function beforeAdd(&$data)
    {
        $data['orderNo'] = getOrderNo();
        $data['status'] = 0;
        $data['payStatus'] = 0;
        return true;
    }


}
